<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 18-7-19
 * Time: 下午4:17
 */

$provs = \common\components\bank\Icbc::$zoneno_provs_dict;
$citys = \common\components\bank\Icbc::$zoneno_city_dict;

//$c = '宁德市';
//$_a = array_search($c, $citys);
//var_dump($_a);exit;
?>

<div>
    <div class="row">
        <div class="col-sm-4">
            <table class="table">
                <thead>
                <tr>
                    <th>省份</th>
                    <th>代码</th>
                </tr>
                </thead>
                <tbody>
                <?php foreach ($provs as $k => $v): ?>
                    <tr>
                        <td><?=$v ?></td>
                        <td><?=$k ?></td>
                    </tr>
                <?php endforeach; ?>
                </tbody>
            </table>
        </div>
        <div class="col-sm-8">
            <table class="table">
                <thead>
                <tr>
                    <th>市县</th>
                    <th>代码</th>
                </tr>
                </thead>
                <tbody>
                <?php foreach ($citys as $k => $v): ?>
                    <tr>
                        <td><?=$v ?></td>
                        <td><?=$k ?></td>
                    </tr>
                <?php endforeach; ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
